﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AtomicTypes;
using NDimArrayNamespace;

namespace Memory_Access
{
    public class QUInt8Array : QLabValues.AtomicTypeArray<AtomicTypes.QUInt8>
    {
        public QUInt8Array(params int[] dimensionSize)
            : base(dimensionSize)
        {
        }
        public QUInt8Array(QUInt8[] data, params int[] dimensionSize)
            : base(data, dimensionSize)
        {
        }

        public int[] ToIntArray()
        {
            // TODO: konvertovanje NDimArraya u niz intidzera (npr a11,a21,a31,a12,a22,a32,a13,a23,a33)
            return null;
        }

        public QUInt8Array GetSubArray(int[][] subNDimArrayCoordinates)
        {
            NDimArray<QUInt8> tempArray = base.GetSubNDimArray(subNDimArrayCoordinates);
            return new QUInt8Array(tempArray.Data, tempArray.DimensionSize);
        }

        public override QLabValues.IQLabValueType getEnumType()
        {
            return QLabValues.IQLabValueType.QUInt8Array;
        }
    }
}
